package com.itheima.dubbo.api;

import com.itheima.model.enums.CommentType;
import com.itheima.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    Integer save(Comment comment);

    List<Comment> page(String movementId, CommentType comment, Integer page, Integer pagesize);

    Boolean hasComment(String movementId, Long id, CommentType commentType);

    Integer remove(Comment comment);


    Comment findById(Long userId);


    List<Comment> findUserVo(Integer page, Integer pagesize, Long userId, CommentType commentType);
}
